共计 1561 个字符,预计需要花费 4 分钟才能阅读完成。
简介
ALS 是一个在线工具集合。
项目地址:https://github.com/wikihost-opensource/als
Demo:http://lg.hk1-bgp.hkg.50network.com/
注:目前只支持 Docker 部署
支持以下功能
- [o] Ping – IPv4
- [o] HTML 5 在线速度测试(支持内网)
- [o] 文件下载测试
- [o] 获取访问客户 IP 地址(可内网使用)
- [o] iPerf3 服务器
- [o] 服务器流量图
- [o] Speedtest.net 客户端(可指定服务器 ID)
- [o] 在线 Web shell(有限命令 – ping – traceroute – mtr – nexttrace)
截图:

安装(需要提前安装好 Docker 环境)
docker run -d --name looking-glass --restart always --network host wikihostinc/looking-glass-server
安装注意
默认占用 80 端口使用主机网络作为 Web 访问,IPerf3 默认端口范围为 30000-31000。
相关参数
| Key | Example | Default | Description |
|---|---|---|---|
| LISTEN_IP | 127.0.0.1 | (all ip) | which IP address will be listen use |
| HTTP_PORT | 80 | 80 | which HTTP port should use |
| SPEEDTEST_FILE_LIST | 100MB 1GB | 1MB 10MB 100MB 1GB | size of static test files, separate with space |
| LOCATION | "this is location" | (from maxmind database, ip via PUBLIC_IPV4 or PUBLIC_IPV6) | location string |
| MAXMIND_KEY | THE_KEY | (empty) | about more https://dev.maxmind.com/geoip/geolite2-free-geolocation-data |
| PUBLIC_IPV4 | 1.1.1.1 | (fetch from http://ifconfig.co) | The IPv4 address of the server |
| PUBLIC_IPV6 | fe80::1 | (fetch from http://ifconfig.co) | The IPv6 address of the server |
| DISPLAY_TRAFFIC | true | true | Toggle the streaming traffic graph |
| ENABLE_SPEEDTEST | true | true | Toggle the speedtest feature |
| UTILITIES_PING | true | true | Toggle the ping feature |
| UTILITIES_SPEEDTESTDOTNET | true | true | Toggle the speedtest.net feature |
| UTILITIES_FAKESHELL | true | true | Toggle the HTML Shell feature |
| UTILITIES_IPERF3 | true | true | Toggle the iperf3 feature |
| UTILITIES_IPERF3_PORT_MIN | 30000 | 30000 | iperf3 listen port range – from |
| UTILITIES_IPERF3_PORT_MAX | 31000 | 31000 | iperf3 listen port range – to |
| SPONSOR_MESSAGE | "Test message" or "/tmp/als_readme.md" or "http://some_host/114514.md" | ” | Show server sponsor message (support markdown file, required mapping file to container) |
以上。
全文完